package com.qf.Listener.Topic;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class testTopicLis01 {
    @RabbitListener(queues = "topic1")
    public void consum(String message){

        System.out.println("消费了队列1+++++++++++++++"+message);
    }
}
